function getRoleList (params) {
    return $axios({
        url: '/role/page',
        method: 'get',
        params
    })
}


// 新增---添加订单
function addRole (params) {
    return $axios({
        url: '/role',
        method: 'post',
        data: { ...params }
    })
}

// 修改---添加订单
function editRole(params) {
    return $axios({
        url: '/role',
        method: 'put',
        data: { ...params }
    })
}

// 删除---删除订单
function deleRole (id)  {
    return $axios({
        url: '/role',
        method: 'delete',
        params: { id }
    })
}

function queryRoleById (id) {
    return $axios({
        url: `/role/${id}`,
        method: 'get'
    })
}

